package cn.itsource.api;


import cn.itsource.fallback.LoginRemoteApifallbackFactory;
import cn.itsource.pojo.domain.Login;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "it-fccar-service-uaa",
        fallbackFactory = LoginRemoteApifallbackFactory.class)
public interface LoginRemoteApi {

    @PostMapping("/register/register")
    public JSONResult register(@RequestBody Login Login);

}
